package guanqu.beans;


import java.io.Serializable;
import java.util.Calendar;


public class WaterGateStadiaAndSendTimePK implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String stadiaCode;		// 测站编号
	private Calendar sendTime;		// 发送时间
	public String getStadiaCode() {
		return stadiaCode;
	}
	public void setStadiaCode(String stadiaCode) {
		this.stadiaCode = stadiaCode;
	}
	public Calendar getSendTime() {
		return sendTime;
	}
	public void setSendTime(Calendar sendTime) {
		this.sendTime = sendTime;
	}
	
	@Override  
    public boolean equals(Object o) {  
        if(o instanceof WaterGateStadiaAndSendTimePK){  
        	WaterGateStadiaAndSendTimePK key = (WaterGateStadiaAndSendTimePK)o ;  
            if(this.stadiaCode == key.getStadiaCode() && this.sendTime.equals(key.getSendTime())){  
                return true ;  
            }  
        }  
        return false ;  
    }  
	@Override
	public int hashCode() {
		return this.stadiaCode.hashCode();
	}
	
}
